package com.xbb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbb.entity.Computer;
import com.xbb.entity.dto.ComputerDto;
import com.xbb.mapper.ComputerMapper;
import com.xbb.service.ComputerService;
@Service
public class ComputerServiceImpl implements ComputerService{

	@Autowired
	ComputerMapper computerMapper;
	
	@Override
	public List<ComputerDto> getComs(ComputerDto computerDto) {
		return computerMapper.getComs(computerDto);
	}

	@Override
	public boolean addCom(Computer computer) {
		return computerMapper.addCom(computer);
	}

	@Override
	public boolean updateCom(Computer computer) {
		return computerMapper.updateCom(computer);
	}

	@Override
	public boolean delCom(int cid) {
		return computerMapper.delCom(cid);
	}

}
